//
//  UploadFile.m
//  Test
//
//  Created by 侯伟 on 2019/4/26.
//  Copyright © 2019 侯伟. All rights reserved.
//

#import "UploadFile.h"

@implementation UploadFile

+ (instancetype)uploadFileWithfileData:(NSData *)fileData paramName:(NSString *)paramName fileName:(NSString *)fileName mimeType:(NSString *)mimeType
{
    UploadFile *tmp = [UploadFile new];
    tmp.fileData = fileData;
    tmp.paramName = paramName;
    tmp.fileName = fileName;
    tmp.mimeType = mimeType;
    
    return tmp;
}

- (instancetype)initWithfileData:(NSData *)fileData paramName:(NSString *)paramName fileName:(NSString *)fileName mimeType:(NSString *)mimeType
{
    self = [super init];
    if (self)
    {
        self.fileData = fileData;
        self.fileName = fileName;
        self.paramName = paramName;
        self.mimeType = mimeType;
    }
    return self;
}

@end
